package ch5;

import java.util.Scanner;

public class Zuoye8 {//输入10个数，求他们当中最大的数
    public static void main(String[] args) {
        int i = 1;
        double a = 0;
        while (i <= 10) {
            Scanner input = new Scanner(System.in);
            System.out.print("请输入第" + i + "个数：");
            double b = input.nextDouble();
            if (b > a) {
                a = b;
            }
            i++;
        }
        System.out.println("最大数是：" + a);
    }
}
